﻿* Encoding: UTF-8.
*Models for "More Gender Bias in Academia" JBPA.
*Finalized 5/16/2019 SPSS v25.
*Author: Zach Mohr.

*Descriptives.
CROSSTABS
  /TABLES=trmohr1 BY ops14 white black latino mngmt publicsector 
  /FORMAT=AVALUE TABLES
  /STATISTICS=CHISQ
  /CELLS=COUNT ROW
  /COUNT ROUND CELL.

FREQUENCIES VARIABLES=ops15 
  /ORDER=ANALYSIS.

ONEWAY age BY trmohr2
  /STATISTICS DESCRIPTIVES
  /MISSING ANALYSIS.

**********************************
*Analysis.

*bivariates and descriptives.
*written.
  CROSSTABS 
  /TABLES=pia_written BY pia_answerfollow 
  /FORMAT=AVALUE TABLES 
  /STATISTICS=CHISQ PHI
  /CELLS=COUNT ROW 
  /COUNT ROUND CELL.
  
*gender.
  CROSSTABS 
  /TABLES=ops14 BY pia_answerfollow 
  /FORMAT=AVALUE TABLES 
  /STATISTICS=CHISQ PHI
  /CELLS=COUNT ROW 
  /COUNT ROUND CELL.

  *gender match.
  CROSSTABS 
  /TABLES=pia_gendermatch4cat BY pia_answerfollow 
  /FORMAT=AVALUE TABLES 
  /STATISTICS=CHISQ PHI
  /CELLS=COUNT ROW 
  /COUNT ROUND CELL.



***
*Multivariate.
*Split file.
SORT CASES  BY ops14.
SPLIT FILE LAYERED BY ops14.

*female only.
LOGISTIC REGRESSION VARIABLES pia_answerfollow
  /METHOD=ENTER pia_written femaleSfemaleT mngmt publicsector age white black latino ops58 
  /CRITERIA=PIN(.05) POUT(.10) ITERATE(20) CUT(.5).

*male only.
LOGISTIC REGRESSION VARIABLES pia_answerfollow
  /METHOD=ENTER pia_written  maleSmaleT mngmt publicsector  age white black latino ops58 
  /CRITERIA=PIN(.05) POUT(.10) ITERATE(20) CUT(.5).

SPLIT FILE OFF.

*all student model.
LOGISTIC REGRESSION VARIABLES pia_answerfollow
  /METHOD=ENTER pia_written maleSfemaleT maleSmaleT femaleSfemaleT mngmt publicsector age white black latino ops58 
  /CRITERIA=PIN(.05) POUT(.10) ITERATE(20) CUT(.5).


*all student model without controls.
LOGISTIC REGRESSION VARIABLES pia_answerfollow
  /METHOD=ENTER pia_written maleSfemaleT maleSmaleT femaleSfemaleT
  /CRITERIA=PIN(.05) POUT(.10) ITERATE(20) CUT(.5).




